<?php
//Register post type Advertise
add_action('init','register_advertise_postype');
function register_advertise_postype(){
  $labels = array(
    'name' => 'Advertise',
    'singular_name' => 'Advertise',
    'add_new' => 'Add New Advertise',
    'add_new_item' => 'Add New Advertise',
    'edit_item' => 'Edit Advertise',
    'new_item' => 'New Advertise',
    'all_items' => 'All Advertise',
    'view_item' => 'View Advertise',
    'search_items' => 'Search Advertise',
    'not_found' =>  'No Advertise found',
    'not_found_in_trash' => 'No Advertise found in Trash',
    'parent_item_colon' => '',
    'menu_name' => 'Advertise'
  );
    $args = array(
    'labels' => $labels,
    'public' => true,
    'publicly_queryable' => true,
    'show_ui' => true,
	'show_in_nav_menus' => false,
    'show_in_menu' => true,
    'query_var' => true,
    'rewrite' => array( 'slug' => '' ),
    'capability_type' => 'post',
    'has_archive' => true,
    'hierarchical' => false,
    'menu_position' => 10,
    'supports' => array( 'title')
  );
	register_post_type( 'advertise', $args );
}
?>